package de.hbrs.ooka.beans;

import de.hbrs.ooka.entities.UserEntity;
import javax.ejb.Stateful;

@Stateful
public class UserSessionStateful implements UserSessionStatefulLocal {

    private UserEntity m_loggedOnUser = null;

    public UserSessionStateful() {
    }

    public UserSessionStateful(UserEntity u) {
        this.m_loggedOnUser = u;
    }

    @Override
    public UserEntity getUser() {
        return this.m_loggedOnUser;
    }

    @Override
    public void setUser(UserEntity u) {
        this.m_loggedOnUser = u;
    }
}
